powered by
Match(x,key)
match
y <- rnorm(100) a <- Match(y,50) b <- match(50,y) all.equal(as.vector(a),as.vector(b))
Run the code above in your browser using DataLab